package club.babyf.nativeai.entity.chat;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * ChatChoice
 */
@Data
public class ChatChoice implements Serializable {

    private long index;

    /**
     * 请求参数stream为true返回是delta
     */
    @JsonProperty("delta")
    private Message delta;

    /**
     * 请求参数stream为false返回是message
     */
    @JsonProperty("message")
    private Message message;

    @JsonProperty("finish_reason")
    private String finishReason;

    @JsonProperty("logprobs")
    private String logPRobs;

    @JsonProperty("content_filter_result")
    private String contentFilterResult;

    @JsonProperty("content_filter_results")
    private Object contentFilterResults;

}
